package cn.iocoder.yudao.module.search.api.search.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Map;

/**
 * RPC 服务 - 搜索文档 Response DTO
 *
 * @author 芋道源码
 */
@Schema(description = "RPC 服务 - 搜索文档 Response DTO")
@Data
public class SearchDocumentRespDTO {

    @Schema(description = "索引名称", example = "user_index")
    private String indexName;

    @Schema(description = "文档ID", example = "1")
    private String documentId;

    @Schema(description = "文档内容", example = "{\"name\":\"张三\",\"age\":25}")
    private Map<String, Object> document;

    @Schema(description = "文档评分", example = "1.0")
    private Double score;

}
